#!/bin/bash

#
# Daex - Dvd Audio EXtractor
# Script di avvio automatico del programma, specificando jar e librerie
# nel sistema.
#

JVM=$JAVA_HOME/jre/bin/java
JARS="-cp jars/stax-1.2.0_rc2-dev.jar:jars/stax-api-1.0.1.jar:jars/substance.jar:jars/daex.jar"
LIBS="-Djava.library.path=lib/"
TARGET="eu.chimera_bellerofonte.tesi.Application"

if [ ! -e $JVM ]; then
	echo Java VM could not be found. Please check your JAVA_HOME environment variable.
	exit 1
fi

exec $JVM $JARS $LIBS $TARGET
